package com.rybbaby.tss.front.tssClassSchedule.entity;

import java.io.Serializable;
import java.sql.Time;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.Version;

/**
 * @description 课表视图
 *
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午11:52:12
 */
@Entity
@Table(name = "view_tss_class_schedule")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewTssClassSchedule implements Serializable {

	private static final long serialVersionUID = 2063060604448819619L;

	/** 主键 **/
	private String id;
	/** 上课开始时间 **/
	private java.sql.Time startTime;
	/** 上课结束时间 **/
	private java.sql.Time endTime;
	/** 课程名称 **/
	private String coursName;
	/** 适应年龄 **/
	private String trialAge;
	/** 周几上课  **/
	private Integer weekDay;
    /** 教师名称 **/
	private String realName ;
	/** 班级名称 **/
	private String className;
	/** 教室名称 **/
	private String roomName;
	/** 教室id **/
	private String roomId;
	/** 报班人数 **/
	private Integer  attendCount;
	/** 班级类型 **/
	private Integer type;
	/** 课程性质  1 半日,2全日**/
	private Integer natrue;
	/** 上课日期 **/
	private Timestamp classTime;
	
	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "view_tss_class_scheduleGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "view_tss_class_scheduleGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "startTime", nullable= true, length = 10)
	public Time getStartTime() {
		return startTime;
	}

	public void setStartTime(Time startTime) {
		this.startTime = startTime;
	}
	@Column(name = "endTime", nullable= true, length = 10)
	public Time getEndTime() {
		return endTime;
	}

	public void setEndTime(Time endTime) {
		this.endTime = endTime;
	}
	@Column(name = "coursName", nullable= true, length = 100)
	public String getCoursName() {
		return coursName;
	}

	public void setCoursName(String coursName) {
		this.coursName = coursName;
	}
	@Column(name = "trialAge", nullable= true, length = 20)
	public String getTrialAge() {
		return trialAge;
	}

	public void setTrialAge(String trialAge) {
		this.trialAge = trialAge;
	}
	@Column(name = "weekDay", nullable= true, length = 11)
	public Integer getWeekDay() {
		return weekDay;
	}

	public void setWeekDay(Integer weekDay) {
		this.weekDay = weekDay;
	}
	@Column(name = "realName", nullable= true, length = 20)
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
	@Column(name = "className", nullable= true, length = 20)
	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}
	@Column(name = "roomName", nullable= true, length = 20)
	public String getRoomName() {
		return roomName;
	}

	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}
	@Column(name = "roomId", nullable= true, length = 32)
	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}
	@Column(name = "attendCount", nullable= true, length = 11)
	public Integer getAttendCount() {
		return attendCount;
	}

	public void setAttendCount(Integer attendCount) {
		this.attendCount = attendCount;
	}

	@Column(name = "type", nullable= true, length = 11)
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "natrue", nullable= true, length = 11)
	public Integer getNatrue() {
		return natrue;
	}

	public void setNatrue(Integer natrue) {
		this.natrue = natrue;
	}
	@Column(name = "classTime", nullable= true, length = 19)
	public Timestamp getClassTime() {
		return classTime;
	}

	public void setClassTime(Timestamp classTime) {
		this.classTime = classTime;
	}
}